package com.qys.livesMall.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qys.livesMall.product.entity.ProductSkuAttributeOptions;
import com.qys.livesMall.product.mapper.ProductSkuAttributeOptionsMapper;
import com.qys.livesMall.product.service.ProductSkuAttributeOptionsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2023-06-13
 */
@Service
public class ProductSkuAttributeOptionsServiceImpl extends ServiceImpl<ProductSkuAttributeOptionsMapper, ProductSkuAttributeOptions> implements ProductSkuAttributeOptionsService {

    @Override
    public List<ProductSkuAttributeOptions> listByAttrIds(List<Long> attrIds) {
        LambdaQueryWrapper<ProductSkuAttributeOptions> qw=new LambdaQueryWrapper<>();
        qw.in(ProductSkuAttributeOptions::getAttrId,attrIds);
        return list(qw);
    }
}
